package com.mt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mt.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Wang
 * @Description
 * @since 2020-11-12
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    Boolean distributeRole4User(@Param("userId") String userId,@Param("roleId")Integer roleId);

    List<Integer> listAclByUser(@Param("userId") String userId);

    User getUserBriefInfo(@Param("userId") String userId);

    boolean modifyUser(@Param("user") User user);

    List<User> listUser(IPage<User> page, @Param("key") String key);
}

